﻿using ReflectionStudio.Components.UserControls;
using ReflectionStudio.Core.Events;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Windows;
using System.Data;
namespace WPFExcelReport
{
    public partial class PRJVK: PRJTMP
    {   
        
        public PRJVK()
        {
            
        }  

        public override void OnWorkflowIDChange(string wfid)
        {
            base.OnWorkflowIDChange(wfid);
            try
            {
                dwWFEvent = null;
                VKAUF = "";
                DataSet SResult = VICC_WFEVENTS.SVWF.LOADBYID(wfid);
                foreach (DataRow row in SResult.Tables[0].Rows)
                {
                    dwWFEvent = row;
                    break;
                }
                if (dwWFEvent == null)
                    return;
                string events = dwWFEvent["WFEVENTS"].ToString().Trim();
                switch (events)
                {
                    default:
                    case "MVK04"://确定数量等
                        VKAUF = "";
                        VKAUF = dwWFEvent["ORDTYPE"].ToString() + dwWFEvent["KRS"].ToString() + dwWFEvent["LFD"].ToString(); 
                        break;
                }
            }
            catch (Exception ex)
            {
                Tracer.Error(ex.StackTrace, ex);
            }
        } 
    }
}
